package cn.blossoming.service.dto;

import cn.blossoming.dao.domain.TipsCommentEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;


@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor

public class TipsComment {


    private Integer id;
    private String content;
    private Integer praiseNum;
    private Integer commentNum;
    private boolean isPraise = false;
    private boolean isMyself = false;
    private String remark;

    public TipsComment(TipsCommentEntity entity) {
        this.id = entity.getId();
        this.content = entity.getContent();
        this.commentNum = entity.getCommentNum();
        this.praiseNum = entity.getPraiseNum();
        this.remark = entity.getRemark();
    }


    private Tips tips;


    private TipsComment tipsComment;


    private List<TipsComment> tipsComments;


    private User user;

    private Integer tipsId;

}
